Cyber-Guardian Migration Status
Date: 2026-03-06 Status: Phase 2 Complete β
Completed
Phase 1: Repository Setup and Structure β
Repository: - β Created GitHub repository: https://github.com/Quig-Enterprises/cyber-guardian - β Cloned to: /opt/claude-workspace/projects/cyber-guardian - β Merged security-red-team history (commit 89ca8ec - 115 files, 30,474 insertions) - β Merged security-blue-team history (commit 84c6cfa) - β Created unified structure (commit acfa8b4)
Unified Structure:
- β
shared/ - Common infrastructure
- β
auth.py - JWT authentication client
- β
database.py - PostgreSQL utilities
- β
config.py - Configuration loader with env var substitution
- β
cyberguardian/ - CLI package
- β
cli.py - Main entry point with argparse
- β
docs/ - Documentation
- β
development.md - Developer guide
- β
Unified pyproject.toml - Merged dependencies from both teams
- β
Unified config.yaml - Red team + blue team configuration
- β
Comprehensive .gitignore
- β
Comprehensive README.md
Git History: - β Full red team commit history preserved - β Full blue team commit history preserved - β Clean merge with subdirectory structure
Remaining Work
Phase 2: Code Integration β COMPLETE
Import Refactoring:
- β
Updated ALL red team imports to use shared.config
- β
Updated ALL blue team imports to use shared.config
- β
Updated ALL blue team imports to use shared.database
- β
Removed duplicate config.py from redteam/ and blueteam/
- β
Removed duplicate db.py from blueteam/
- β
Added compatibility functions (load_config, get_connection, close)
- β
Enhanced shared modules with logging support
CLI Handlers:
- β
Created redteam/cli.py with run_redteam() function
- β
Created blueteam/cli.py with run_blueteam() function
- β
Created cyberguardian/dashboard.py with run_dashboard() function
- β
Tested CLI entry point: cyber-guardian --help works
- β
Tested red team CLI: cyber-guardian redteam --help works
- β
Tested blue team CLI: cyber-guardian blueteam --help works
- β
Package installs successfully with pip install -e .
Phase 3: Testing
Test Suite:
- [ ] Move red team tests to tests/redteam/
- [ ] Move blue team tests to tests/blueteam/
- [ ] Create integration tests in tests/integration/
- [ ] Add conftest.py with shared fixtures
- [ ] Test red team attacks still work
- [ ] Test blue team collectors still work
- [ ] Test unified CLI works
Phase 4: Documentation
Documentation Updates:
- [ ] Create docs/redteam/attack-catalog.md
- [ ] Create docs/blueteam/compliance-tracking.md
- [ ] Create docs/integration/redteam-blueteam-sync.md
- [ ] Create docs/blueteam/cmmc-prep.md
- [ ] Update README.md with installation instructions
- [ ] Add examples to README.md
Phase 5: CI/CD
GitHub Actions:
- [ ] Create .github/workflows/test.yml - Run pytest on PR
- [ ] Create .github/workflows/lint.yml - Run black and ruff
- [ ] Create .github/workflows/release.yml - Build and publish to PyPI
Commands to Test
# Installation
cd /opt/claude-workspace/projects/cyber-guardian
pip install -e '.[dev]'
# CLI
cyber-guardian --version
cyber-guardian --help
cyber-guardian redteam --help
cyber-guardian blueteam --help
# Tests
pytest
pytest tests/redteam/
pytest tests/blueteam/
# Code quality
black .
ruff check .
Original Repositories
Preserved for reference (read-only):
- /opt/claude-workspace/projects/security-red-team/
- /opt/claude-workspace/projects/security-blue-team/
Do NOT make changes to these directories - all work happens in cyber-guardian/.
Migration Timeline
| Phase | Status | Date |
|---|---|---|
| Phase 1: Repository Setup | β Complete | 2026-03-06 |
| Phase 2: Code Integration | β Complete | 2026-03-06 |
| Phase 3: Testing | π In Progress | - |
| Phase 4: Documentation | β³ Pending | - |
| Phase 5: CI/CD | β³ Pending | - |
Next Steps
- Immediate: Set up test suite in tests/ directory β Phase 2 complete!
- Soon: Test attack execution with real config
- Then: Complete documentation (attack catalog, compliance guides)
- Finally: Set up CI/CD workflows
Estimated remaining: 1-2 days of focused work
What Just Got Done (Phase 2)
Import Refactoring:
- Used sed to bulk-update 182 Python files
- Replaced from redteam.config import β from shared import
- Replaced from blueteam.config import β from shared import
- Replaced from blueteam.db import β from shared import
- Deleted 3 duplicate modules (2 config.py, 1 db.py)
Shared Module Enhancements:
- Added load_config() function for backward compatibility
- Added get_connection() and close() functions for database
- Made environment variable substitution non-fatal
- Added logging support throughout
CLI Creation:
- Created unified CLI entry point: cyber-guardian
- Implemented red team handler with attack execution
- Implemented blue team handler with monitoring/reporting
- Implemented dashboard launcher
- All help commands work correctly
Testing: - Created Python virtual environment - Installed package with all dependencies - Verified CLI works end-to-end - All imports resolve correctly